package com.anthill.handlers
{
/**
 *  Value Object class that used to store parameters neaded 
 *  for <code>addEventListener</code>
 * 
 */ 
public class EventHandler
{
	include "../Version.as";
	
	/**
     *  Constructor. 
     *  
     */	
	public function EventHandler()
	{
	}
	
	/**
	 *  Type of event that will be dispatched.
	 * 
	 *  @default blank.
	 */
	public var type:String; 
	
	/**
	 *  Function that will be used as handler for event.
	 * 
	 *  @default null.
	 */
	public var listener:Function;
	
	/**
	 *  Flag that used in <code>addEventListener</code>.
	 * 
	 *  @default false.
	 */ 
	public var useCapture:Boolean=false;
	
	/**
	 *  Parameter that used in <code>addEventListener</code>.
	 * 
	 *  @default 0.
	 */ 
	public var priority:int=0;
	
	/**
	 *  Flag that used in <code>addEventListener</code>.
	 * 
	 *  @default false.
	 */
	public var useWeakReference:Boolean=false;
}
}